package com.castle.fortress.admin.exchange.mapper;

import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.castle.fortress.admin.exchange.entity.ExchangeVoucherEntity;
import java.util.Map;
import java.util.List;
/**
 * 兑换券Mapper 接口
 *
 * @author whc
 * @since 2022-12-06
 */
public interface ExchangeVoucherMapper extends BaseMapper<ExchangeVoucherEntity> {

    /**
    * 扩展信息列表
    * @param pageMap
    * @param exchangeVoucherEntity
    * @return
    */
    List<ExchangeVoucherEntity> extendsList(@Param("map")Map<String, Long> pageMap, @Param("exchangeVoucherEntity") ExchangeVoucherEntity exchangeVoucherEntity);

    /**
    * 扩展信息记录总数
    * @param exchangeVoucherEntity
    * @return
    */
    Long extendsCount(@Param("exchangeVoucherEntity") ExchangeVoucherEntity exchangeVoucherEntity);

    /**
    * 兑换券扩展详情
    * @param id 兑换券id
    * @return
    */
    ExchangeVoucherEntity getByIdExtends(@Param("id")Long id);



}
